package com.neuedu.service;

import com.neuedu.pojo.Result;
import com.neuedu.pojo.TElder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.neuedu.pojo.dto.elder.AddElderDTO;
import com.neuedu.pojo.dto.elder.CheckinElderDTO;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zhangsan
 * @since 2024-06-16
 */
public interface ITElderService extends IService<TElder> {

    Result<List<TElder>> getPage(Integer currentPage, Integer pageSize, String eldName, Integer eldHealth, Integer eldBed);

    Result findByElderId(int eldId);

    Result<List<TElder>> findByNurseId(Long nurseId, Long eldId, Boolean eldHealth);

    Result addElderAcc(AddElderDTO addElderDTO);

    Result checkinElder(CheckinElderDTO dto);

    Result findByBed();

    Result modBedByEldId(Integer eldId, String bedNumber);

    Result getCheckinInfo(Long accId,String typeofrecord);

    Result findElderByBedNumber(String bedNumber);

    Result findByAccId(Long accId);

    Result<List<TElder>> findAll();

    Result findAllWithNurse();

    Result modNurseIdById(Integer nurseId, Integer eldId);


    Result modElderById( TElder elder);

}
